const Router = require('koa-router');

const pageRouter = new Router();

pageRouter
  .get('/', async (ctx) => {
    let title = 'cander';
    await ctx.render('index', {
      title
    })
  })
  .get('admin', async (ctx) => {
    await ctx.render('admin', {
      title: 'admin'
    })
  });

module.exports = pageRouter;